package 面向对象.day04;

import javax.swing.ImageIcon;

/**
 * @author 王敬仟
 * ObserverSubmarine 侦查潜艇
 */
public class ObserverSubmarine extends SeaObject {
    /*侦查潜艇的构造方法*/
    public ObserverSubmarine(){
        super(63,19);
    }
    /*侦查潜艇的移动方法*/
    public void move(){
        System.out.println("侦查潜艇x轴向右移动了");
    }
    /*设置侦查潜艇图片*/
    public ImageIcon getImage(){
        return Iamges.obsersubm;//返回侦查潜艇图片
    }
}

